<div class="permissions">
    {include file="`$smarty.const.BASE`modules/common/views/_permission_icons.tpl"}    
</div>
<div class="search-extend">                                    
<form  id="search_form" action="{$smarty.const.URL_FULL}index.php" class="searchform" method="post" role="search" novalidate=""> 
 <input type="hidden" name="action" id="action" value="search">
        <input type="hidden"  id="mod_search_searchword"  value="{if $search_string != ''}{$search_string}{else}{$_TR.search_default_term}{/if}"  onblur="if(this.value=='') this.value='{$_TR.search_default_term}';" onfocus="if(this.value=='{$_TR.search_default_term}') this.value='';">
        
  <span class="form-field-wrapper" style="position: relative; ">
  <input type="text" required="required" placeholder="Search"  name="search_string" value="{if $search_string != ''}{$search_string}{else}{$_TR.search_default_term}{/if}"  onblur="if(this.value=='') this.value='{$_TR.search_default_term}';" onfocus="if(this.value=='{$_TR.search_default_term}') this.value='';" id="search-text-widget"></span>                                        
  <button type="submit" value="{$_TR.search_button}" id="top-search-submit">{$_TR.search_button}</button>                                    </form>                                </div>
<script language="javascript">
    {literal}
    jQuery(document).ready(function(){
    jQuery("#search_form").submit(function(){
        var url="/search/"+encodeURI(jQuery("[name='search_string']").val());
        document.location=url;               
        return false;
    });
    });
    {/literal}
</script>
